package com.axin.system.api;

import com.axin.common.core.constant.ServiceNameConstants;
import com.axin.common.core.domain.web.AjaxResult;
import com.axin.system.api.config.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 用户服务 远程调用
 *
 * @Author axin
 * @Date 2021/9/11 23:15
 */
@FeignClient(contextId = "remoteConfigService", path = "/config", value = ServiceNameConstants.SYSTEM_SERVICE, configuration = FeignConfiguration.class)
public interface RemoteConfigService {

    /**
     * 查询验证码开关
     *
     * @return
     */
    @GetMapping("/selectCaptchaOnOff")
    boolean selectCaptchaOnOff();

    /**
     * 查询参数
     * @param configKey
     * @return
     */
    @GetMapping("/configKey/{configKey}")
    AjaxResult getConfigKey(@PathVariable("configKey") String configKey);
}
